package gwtlx.tinymce.client;

import com.google.gwt.core.client.JavaScriptObject;

/**
 * todo: javadoc
 * <p/>
 * &copy; Copyright by Konstantin Pavlov
 *
 * @author Konstantin Pavlov
 * @version $LastChangedRevision$
 * @since 08.06.2010
 */
public abstract class TinyMceConfig extends JavaScriptObject {

    public static enum Mode {
        textareas,
        specific_textareas,
        exact,
        none
    }

    protected TinyMceConfig() {
    }

    public static TinyMceConfig newInstance() {
        return (TinyMceConfig) createObject();
    }

    public final native void setMode(Mode mode) /*-{
        this.mode = mode.@gwtlx.tinymce.client.TinyMceConfig.Mode::name()();
    }-*/;

    public final native void setTheme(String theme) /*-{
        this.theme = theme;
    }-*/;
}
